<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>Config | ts</title>
	<meta name="description" content="Documentation for ts">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="../index.html" class="title">ts</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-externals" checked />
							<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
							<input type="checkbox" id="tsd-filter-only-exported" />
							<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../globals.html">Globals</a>
				</li>
				<li>
					<a href="../modules/_config_.html">&quot;Config&quot;</a>
				</li>
				<li>
					<a href="_config_.config.html">Config</a>
				</li>
			</ul>
			<h1>Class Config</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel tsd-comment">
				<div class="tsd-comment tsd-typography">
					<div class="lead">
						<p> Config 用于配置一些全局参数。如需更改，请在初始化引擎之前设置。</p>
					</div>
				</div>
			</section>
			<section class="tsd-panel tsd-hierarchy">
				<h3>Hierarchy</h3>
				<ul class="tsd-hierarchy">
					<li>
						<span class="target">Config</span>
					</li>
				</ul>
			</section>
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Properties</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_config_.config.html#allowgpuinstancedynamicbatch" class="tsd-kind-icon">allowGPUInstance<wbr>Dynamic<wbr>Batch</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_config_.config.html#animationinterval" class="tsd-kind-icon">animation<wbr>Interval</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_config_.config.html#is2dpixelartgame" class="tsd-kind-icon">is2DPixel<wbr>Art<wbr>Game</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_config_.config.html#isalpha" class="tsd-kind-icon">is<wbr>Alpha</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_config_.config.html#isantialias" class="tsd-kind-icon">is<wbr>Antialias</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_config_.config.html#isstencil" class="tsd-kind-icon">is<wbr>Stencil</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_config_.config.html#premultipliedalpha" class="tsd-kind-icon">premultiplied<wbr>Alpha</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_config_.config.html#preservedrawingbuffer" class="tsd-kind-icon">preserve<wbr>Drawing<wbr>Buffer</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_config_.config.html#printwebglorder" class="tsd-kind-icon">print<wbr>Webgl<wbr>Order</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_config_.config.html#useretinalcanvas" class="tsd-kind-icon">use<wbr>Retinal<wbr>Canvas</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_config_.config.html#usewebgl2" class="tsd-kind-icon">use<wbr>WebGL2</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_config_.config.html#webgl2d_meshallocmaxmem" class="tsd-kind-icon">webGL2<wbr>D_<wbr><wbr>Mesh<wbr>Alloc<wbr>Max<wbr>Mem</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Properties</h2>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="allowgpuinstancedynamicbatch" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> allowGPUInstance<wbr>Dynamic<wbr>Batch</h3>
					<div class="tsd-signature tsd-kind-icon">allowGPUInstance<wbr>Dynamic<wbr>Batch<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/Config.ts#L51">Config.ts:51</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>是否允许GPUInstance动态合并,仅对3D有效。</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="animationinterval" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> animation<wbr>Interval</h3>
					<div class="tsd-signature tsd-kind-icon">animation<wbr>Interval<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 50</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/Config.ts#L8">Config.ts:8</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>动画 Animation 的默认播放时间间隔，单位为毫秒。</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="is2dpixelartgame" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> is2DPixel<wbr>Art<wbr>Game</h3>
					<div class="tsd-signature tsd-kind-icon">is2DPixel<wbr>Art<wbr>Game<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/Config.ts#L38">Config.ts:38</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>是否强制使用像素采样。适用于像素风格游戏</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="isalpha" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> is<wbr>Alpha</h3>
					<div class="tsd-signature tsd-kind-icon">is<wbr>Alpha<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/Config.ts#L16">Config.ts:16</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>设置画布是否透明，只对2D(WebGL)、3D有效。</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="isantialias" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> is<wbr>Antialias</h3>
					<div class="tsd-signature tsd-kind-icon">is<wbr>Antialias<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/Config.ts#L12">Config.ts:12</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>设置是否抗锯齿，只对2D(WebGL)、3D有效。</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="isstencil" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> is<wbr>Stencil</h3>
					<div class="tsd-signature tsd-kind-icon">is<wbr>Stencil<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/Config.ts#L24">Config.ts:24</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>设置画布的是否开启模板缓冲，只对2D(WebGL)、3D有效。</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="premultipliedalpha" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> premultiplied<wbr>Alpha</h3>
					<div class="tsd-signature tsd-kind-icon">premultiplied<wbr>Alpha<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/Config.ts#L20">Config.ts:20</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>设置画布是否预乘，只对2D(WebGL)、3D有效。</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="preservedrawingbuffer" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> preserve<wbr>Drawing<wbr>Buffer</h3>
					<div class="tsd-signature tsd-kind-icon">preserve<wbr>Drawing<wbr>Buffer<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/Config.ts#L28">Config.ts:28</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>是否保留渲染缓冲区。</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="printwebglorder" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> print<wbr>Webgl<wbr>Order</h3>
					<div class="tsd-signature tsd-kind-icon">print<wbr>Webgl<wbr>Order<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/Config.ts#L48">Config.ts:48</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>是否打印Webgl指令，同时定位webgl报错</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="useretinalcanvas" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> use<wbr>Retinal<wbr>Canvas</h3>
					<div class="tsd-signature tsd-kind-icon">use<wbr>Retinal<wbr>Canvas<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/Config.ts#L53">Config.ts:53</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="usewebgl2" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> use<wbr>WebGL2</h3>
					<div class="tsd-signature tsd-kind-icon">use<wbr>WebGL2<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/Config.ts#L43">Config.ts:43</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>是否使用webgl2</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="webgl2d_meshallocmaxmem" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> webGL2<wbr>D_<wbr><wbr>Mesh<wbr>Alloc<wbr>Max<wbr>Mem</h3>
					<div class="tsd-signature tsd-kind-icon">webGL2<wbr>D_<wbr><wbr>Mesh<wbr>Alloc<wbr>Max<wbr>Mem<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/Config.ts#L33">Config.ts:33</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>当使用webGL渲染2d的时候，每次创建vb是否直接分配足够64k个顶点的缓存。这样可以提高效率。</p>
						</div>
					</div>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class="globals  ">
						<a href="../globals.html"><em>Globals</em></a>
					</li>
					<li class="current tsd-kind-module">
						<a href="../modules/_config_.html">&quot;<wbr>Config&quot;</a>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
				</ul>
				<ul class="current">
					<li class="current tsd-kind-class tsd-parent-kind-module">
						<a href="_config_.config.html" class="tsd-kind-icon">Config</a>
						<ul>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_config_.config.html#allowgpuinstancedynamicbatch" class="tsd-kind-icon">allowGPUInstance<wbr>Dynamic<wbr>Batch</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_config_.config.html#animationinterval" class="tsd-kind-icon">animation<wbr>Interval</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_config_.config.html#is2dpixelartgame" class="tsd-kind-icon">is2DPixel<wbr>Art<wbr>Game</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_config_.config.html#isalpha" class="tsd-kind-icon">is<wbr>Alpha</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_config_.config.html#isantialias" class="tsd-kind-icon">is<wbr>Antialias</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_config_.config.html#isstencil" class="tsd-kind-icon">is<wbr>Stencil</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_config_.config.html#premultipliedalpha" class="tsd-kind-icon">premultiplied<wbr>Alpha</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_config_.config.html#preservedrawingbuffer" class="tsd-kind-icon">preserve<wbr>Drawing<wbr>Buffer</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_config_.config.html#printwebglorder" class="tsd-kind-icon">print<wbr>Webgl<wbr>Order</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_config_.config.html#useretinalcanvas" class="tsd-kind-icon">use<wbr>Retinal<wbr>Canvas</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_config_.config.html#usewebgl2" class="tsd-kind-icon">use<wbr>WebGL2</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_config_.config.html#webgl2d_meshallocmaxmem" class="tsd-kind-icon">webGL2<wbr>D_<wbr><wbr>Mesh<wbr>Alloc<wbr>Max<wbr>Mem</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer>
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
				<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
				<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>